var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function (req, res, next) {
  res.render('index', {
    upName: global.upName
  });
});
router.post('/change', function (req, res, next) {
  console.log(req.body.upName)
  global.upName = req.body.upName
  res.render('index', {
    upName: global.upName
  });
});
module.exports = router;